﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="public/jquery-1.8.2.min.js"></script>
    <link href="styles/default.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="scripts/garden.js"></script>
    <script type="text/javascript" src="scripts/functions.js"></script>
</head>
<body>
    <div id="mainDiv">
        <div id="content">
            <div style="margin-top: 112.5px;" id="code"> <span class="comments">/**</span><br>
                <span class="space"><span class="comments">* where's my true love, </span><br>
                <span class="space"><span class="comments">* where's my girl, </span><br>
                <span class="space"><span class="comments">* these code is wrote for you...</span><br>
                Boy * i = <span class="keyword">new</span> Boy(<span class="string">"labix"</span>);<br>
                Girl * u = <span class="keyword">new</span> Girl(<span class="string">"  ?  "</span>);<br>
                <span class="comments">//I am a little boy and looking for love.</span><br>
                i.search(u);<br>
                <span class="comments">//But I don't konw where are you or who you are.</span><br>
                i.miss(u);<br>
                <span class="comments">//I often fall into sadness.</span><br>
                i.want(u);<br>
                <span class="comments">//Love is without reason.</span><br>
                <span class="comments">//Love is full of trouble.</span><br>
                <span class="keyword">boolean</span> isHesitate = <span class="keyword">true</span>;<br>
                <span class="keyword">while</span> (isHesitate) {<br>
                <span class="placeholder">i.waitFor(u);<br>
                <span class="placeholder"><span class="comments">//Life is a journey.</span><br>
                <span class="placeholder"><span class="comments">//The journey is wonderful because of u.</span><br>
                <span class="placeholder">isHesitate = u.areMyAngle();<br>
                }<br>
                <span class="comments"><font color="red">//BUT WHERE ARE YOU!</font></span><br>
                i.need(u);<br>
                i.want(u);<br>
                <span class="comments"><font color="blue">//I am waiting for you!</font></span><br>
            </span></span></span></span></span></span></span>_</div>
            <div id="loveHeart">
                <canvas id="garden"></canvas>
                <div id="words">
                    <div id="messages">
                        My girl, I have waiting for you
                        <div id="elapseClock"></div>
                    </div>
                    <div id="loveu">
                        Where are you?<br />
                        <div class="signature"></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="copyright"></div>
    </div>
    <script type="text/javascript">
        var offsetX = $("#loveHeart").width() / 2;
        var offsetY = $("#loveHeart").height() / 2 - 55;
        var together = new Date();
        together.setFullYear(1989, 12, 21);
        together.setHours(06);
        together.setMinutes(30);
        together.setSeconds(0);
        together.setMilliseconds(0);
        if (!document.createElement('canvas').getContext) {
            var msg = document.createElement("div");
            msg.id = "errorMsg";
            msg.innerHTML = "您的浏览器不支持HTML5技术<br/>推荐使用 Chrome/Firefox/Opera 浏览器 喵~ ＞▽＜";
            document.body.appendChild(msg);
            $("#code").css("display", "none")
            $("#copyright").css("position", "absolute");
            $("#copyright").css("bottom", "10px");
            document.execCommand("stop");
        } else {
            setTimeout(function () { startHeartAnimation(); }, 5000);
            timeElapse(together);
            setInterval(function () { timeElapse(together); }, 500);
            adjustCodePosition();
            $("#code").typewriter();
        }
    </script>
</body>
</html>
